﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.WorkingCompany
{
	/// <summary>
	/// 劳务公司
	/// </summary>
	public class WorkingCompanyRequestDto
	{ 
		/// <summary>
		/// 部门Id
		/// </summary>		
		[Display(Name = "部门Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int DepartmentId { get; set; }
		/// <summary>
		/// 部门名称
		/// </summary>		
		[Display(Name = "部门名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string DepartmentName { get; set; }
		/// <summary>
		/// 劳务公司名称
		/// </summary>		
		[Display(Name = "劳务公司名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string WorkingCompanyName { get; set; }
	}
}

